all:
	make -C ./cgi/
	make -C ./data_oper/
	make -C ./sem/
	make -C ./thread/
	make -C ./data_global/
	make -C ./mutex/
	arm-none-linux-gnueabi-gcc -g -c main.c -o main.o
	arm-none-linux-gnueabi-gcc main.o sem.o data_hand.o mutex.o other_thread.o data_global.o buzzer_thread.o A9led_thread.o -lpthread -o main
copy_to_board:
	cp main /home/victory/nfs/project/
	cp ./cgi/*.cgi /home/victory/nfs/project/www/cgi-bin/
clean:
	rm ./cgi/*.cgi main *.o 

